<div class="u_cat">
	<div class="u_cat_head_strip"></div>
	<div class="u_cat_head">
		<a href="<?php echo Yii::app()->createUrl('people/index', array('profile'=>$_GET['id'], 'tab'=>'allFriends'));?>">
			<em><?php if($_GET['id'] == Yii::app()->user->id){ echo "Мои "; } ?>Друзья</em><span><?php echo CHtml::encode($countFriends); ?></span>
		</a>
	</div>
	<div class="u_cat_list">
		<?php foreach ($friends as $friend){  ?>
			<div class="u_friend">
				<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>$friend->friend_info->id));?>" class="u_friend_pic">
					<?php if($friend->friend_info->avatar_info){ ?>
						<?php echo $this->material_image(0, $friend->friend_info->avatar_info->name, '50', 'photos/'. $friend->friend_info->id . '/' . 0); ?>
					<?php }else{ ?>
						<?php echo $this->material_image(0, 'noimage.gif', '50', ''); ?>
					<?php } ?>	
				</a>
				<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>$friend->friend_info->id));?>"><?php echo CHtml::encode($friend->friend_info->full_name); ?></a>
			</div>
		<?php } ?>
	</div>
</div>					